/**
 * @name Home
 * @desc 首页
 * @author darcrand
 */

import { mapState, mapActions } from "vuex"

export default {
    name: "home",

    data: () => ({
        tabs: ["less", "router", "vuex"],
        currTab: "less"
    }),

    computed: { ...mapState("TestModule", ["count"]) },

    methods: {
        ...mapActions("TestModule", ["add", "sub"]),

        onTab(tab) {
            this.currTab = tab
        }
    }
}
